<div class="tab-pane fade in active">
  <h3><b>{$count}</b> results found with <strong>"{$query}"</strong> in name </h3>
  <table class="table table-striped table-hover listing-table">
    <thead>
      <tr>
        <th></th>
        <th>Name</th>
        <th>Occupation</th>
        <th>Alive</th>
      </tr>
    </thead>
    <tbody>
    <volist name="data" id="it">
      <tr>
        <td><img class="img-thumbnail" <notempty name="it.poster">src="{$it['poster']}"<else/> data-src="holder.js/50x75" </notempty> alt="{$it['poster']}" style="width:50px;height:75px;"/></td>
        <td class="title">
          <strong><a href="{:U('person/'.$it['id'])}">{$it.name}</a></strong>
          <if condition="stripos($it['aka'], $query) !== false">
          <?php $_aka = explode(',', $it['aka']); ?>
          <foreach name="_aka" item="_it">
          <if condition="stripos($_it, $query) !== false">( {$_it} )</if>
          </foreach>
          </if>
          <p>{:str_replace(',', ' + ', $it['genre'])}</p>
        </td>
        <td>
          {:str_replace(',', ' + ', $it['occupation'])}
        </td>
        <td class="year">
          <notempty name="it.birthdate">{:explode('-', $it['birthdate'])[0]}</notempty> - <notempty name="it.deathdate">{:explode('-', $it['deathdate'])[0]}</notempty>
        </td>
      </tr>
    </volist>
    </tbody>
  </table>
  <center>
    {$page}
  </center>
</div>
<div class="tab-pane fade"></div>
